package org.example.schoolbus;

import jakarta.servlet.http.HttpSession;
import org.example.schoolbus.controller.LoginController;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.HashMap;
import java.util.Map;

@SpringBootTest
public class Logintest {
    @Autowired
    private LoginController loginController;
    @Test
    public void testLoginUser()
    {
        Map<String,Object> map = new HashMap<>();
        map.put("userstyle","1");
        map.put("userphone","12345");
        map.put("userpassword","123456");
        System.out.println(loginController.LoginUser(map));
    }
}
